{{ return default
  (not (eq .TableOfContents "<nav id=\"TableOfContents\"></nav>"))
  (default .Site.Params.BookToC .Params.BookToC)
}}